package com.yyw.service;

import com.yyw.bean.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {


    /**
     * 加入购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart add(ShoppingCart shoppingCart);


    /**
     * 查询购物车
     * @return
     */
    List<ShoppingCart> list();


    /**
     * 清空购物车
     * @return
     */
    int clean();
}
